package com.gict.antifraudback.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gict.antifraudback.entity.Article;
import com.gict.antifraudback.entity.Question;

import java.util.Collection;
import java.util.List;

public interface QuestionService extends IService<Question> {

    /**
     * 创建题目
     *
     * @param questions 题目集合
     */
    void createQuestions(List<Question> questions);

    /**
     * 查询题目列表
     *
     * @param ids
     * @return
     */
    Collection<Question> listByQuestionIds(List<String> ids);

    void checkParam(List<Question> questions);

    void removeQuestionAndOptionByArticleId(Integer id);

    List<Question> listQuestionByArticleId(Integer id);

    /**
     * 每日一练
     * @return
     */
    List<Question> everydayExercise();

}
